package com.mzz.behavior.classandclass.command;

/**
 *
 * @author xushijian
 * @date 18/5/10 上午8:57
 */
public class MyCommand implements Command {

    private Receiver receiver;

    public MyCommand(Receiver receiver) {
        this.receiver = receiver;
    }

    public void exec() {

        receiver.action();
    }
}
